export function timesSevenDay () {
  // 获取当前日期
  const today = new Date()

  // 设置时间为今天晚上12点（实际上是次日0点）
  const midnightTonight = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 1, 0, 0, 0)

  // 计算7天前的时间戳
  const sevenDaysAgo = new Date(midnightTonight.getTime() - (7 * 24 * 60 * 60 * 1000))

  // // 输出结果
  // console.log('今晚12点的时间戳:', midnightTonight.getTime())
  // console.log('7天前的时间戳:', sevenDaysAgo.getTime())
  return [sevenDaysAgo.getTime(), midnightTonight.getTime()]
}
